package com.arvin.service.serviceImpl;

import com.arvin.mapper.TimeMapper;
import com.arvin.pojo.Time;
import com.arvin.service.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class TimeServiceImpl implements TimeService {

    @Autowired
    private TimeMapper timeMapper;

    /**
     * 设置考试时间
     * @param time
     */
    public void setExamTime(Time time) {
        timeMapper.setExamTime(time);
    }

    /**
     * 更新时间
     * @param time
     */
    public void updateTime(Time time) {
        timeMapper.updateTime(time);
    }

    /**
     * 设置免试时间
     * @param time
     */
    @Override
    public void setExemTime(Time time) {
        timeMapper.setExemTime(time);
    }

    /**
     * 设置面试时间
     * @param time
     */
    @Override
    public void setIntvTime(Time time) {
        timeMapper.setIntvTime(time);
    }

    /**
     * 查询时间
     * @return
     */
    @Override
    public Time getTime() {
        return timeMapper.getTime();
    }
}
